<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>网站来源查看器 - 仪表板</title>
    <link rel="stylesheet" href="styles.css">
    <style>
        /* 针对全屏页面的额外样式 */
        
        body {
            margin: 0;
            padding: 20px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            min-height: 100vh;
        }
        
        .container {
            max-width: 1200px;
            margin: 0 auto;
            background: white;
            border-radius: 15px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
            overflow: hidden;
        }
        
        .header {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 30px;
            text-align: center;
        }
        
        .header h1 {
            margin: 0;
            font-size: 2.5em;
            font-weight: 700;
        }
        
        .subtitle {
            margin: 10px 0 0 0;
            font-size: 1.2em;
            opacity: 0.9;
        }
        
        .main-content {
            padding: 30px;
        }
        
        .current-site,
        .history {
            margin-bottom: 40px;
        }
        
        .current-site h2,
        .history h2 {
            color: #333;
            font-size: 1.8em;
            margin-bottom: 20px;
            border-bottom: 3px solid #667eea;
            padding-bottom: 10px;
        }
        
        .site-info {
            background: #f8f9fa;
            border-radius: 10px;
            padding: 20px;
            border-left: 5px solid #667eea;
        }
        
        .history-list {
            max-height: 400px;
            overflow-y: auto;
            border: 1px solid #e0e0e0;
            border-radius: 10px;
        }
        
        .history-item {
            padding: 15px;
            border-bottom: 1px solid #e0e0e0;
            cursor: pointer;
            transition: background-color 0.3s ease;
        }
        
        .history-item:hover {
            background-color: #f8f9fa;
        }
        
        .history-item:last-child {
            border-bottom: none;
        }
        
        .history-item h3 {
            margin: 0 0 5px 0;
            color: #333;
            font-size: 1.1em;
        }
        
        .history-item p {
            margin: 5px 0;
            color: #666;
            font-size: 0.9em;
        }
        
        .footer {
            background: #f8f9fa;
            padding: 20px;
            text-align: center;
            color: #666;
            border-top: 1px solid #e0e0e0;
        }
        
        .loading {
            text-align: center;
            color: #666;
            font-style: italic;
        }
        
        .site-details {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 15px;
            margin-top: 15px;
        }
        
        .detail-item {
            background: white;
            padding: 10px;
            border-radius: 5px;
            border: 1px solid #e0e0e0;
        }
        
        .detail-item strong {
            color: #667eea;
        }
        /* 来源记录特殊样式 */
        
        .source-record {
            border-left: 4px solid #28a745;
            background: linear-gradient(90deg, rgba(40, 167, 69, 0.05) 0%, rgba(255, 255, 255, 1) 10%);
        }
        
        .normal-record {
            border-left: 4px solid #6c757d;
            background: linear-gradient(90deg, rgba(108, 117, 125, 0.05) 0%, rgba(255, 255, 255, 1) 10%);
        }
        
        .empty {
            text-align: center;
            color: #666;
            font-style: italic;
            padding: 20px;
        }
    </style>
</head>

<body>
    <div class="container">
        <header class="header">
            <h1>📍 网站来源查看器</h1>
            <p class="subtitle">查看当前网站信息并记录来源</p>
        </header>

        <main class="main-content">
            <!-- 当前网站信息 -->
            <section class="current-site">
                <h2>来源网站</h2>
                <div id="currentSiteInfo" class="site-info">
                    <p class="loading">正在获取网站信息...</p>
                </div>
            </section>


        </main>


    </div>

    <script src="dashboard.js"></script>
</body>

</html>